﻿export default [
  {
    path: '/',
    redirect: '/welcome',
  },
  {
    component: 'Welcome',
    path: '/welcome',
    name: 'welcome',
    icon: 'dashboard',
  },
  {
    component: '404',
    path: '/*',
  },
  {
    name: 'exception',
    icon: 'warning',
    path: '/_exception',
    layout: false,
    routes: [
      {
        path: '/_exception',
        redirect: '/_exception/403',
      },
      {
        name: '403',
        icon: 'smile',
        path: '/_exception/403',
        component: './_exception/403',
      },
      {
        name: '404',
        icon: 'smile',
        path: '/_exception/404',
        component: './_exception/404',
      },
      {
        name: '500',
        icon: 'smile',
        path: '/_exception/500',
        component: './_exception/500',
      },
    ],
  },
  {
    name: 'result',
    icon: 'CheckCircleOutlined',
    layout: false,
    path: '/_result',
    routes: [
      {
        name: 'success',
        icon: 'smile',
        path: '/_result/success',
        component: './_result/success',
      },
      {
        name: 'fail',
        icon: 'smile',
        path: '/_result/fail',
        component: './_result/fail',
      },
    ],
  },
  {
    path: '/dashboard',
    name: 'dashboard',
    icon: 'dashboard',
    routes: [
      {
        path: '/dashboard',
        redirect: '/dashboard/analysis',
      },
      {
        name: 'analysis',
        icon: 'smile',
        path: '/dashboard/analysis',
        component: './dashboard/analysis',
      },
      {
        name: 'monitor',
        icon: 'smile',
        path: '/dashboard/monitor',
        component: './dashboard/monitor',
      },
      {
        name: 'workplace',
        icon: 'smile',
        path: '/dashboard/workplace',
        component: './dashboard/workplace',
      },
    ],
  },

  {
    path: '/user',
    layout: false,
    routes: [
      {
        path: '/user',
        redirect: '/user/login',
      },
      {
        path: '/user/login',
        layout: false,
        name: 'login',
        component: './user/login',
      },
      {
        name: 'register',
        icon: 'smile',
        path: '/user/register',
        component: './user/register',
      },
      {
        name: 'register-result',
        icon: 'smile',
        path: '/user/register-result',
        component: './user/register-result',
      },
    ],
  },
  {
    name: 'account',
    icon: 'user',
    path: '/account',
    routes: [
      {
        path: '/account',
        redirect: '/account/center',
      },
      {
        name: 'center',
        icon: 'smile',
        path: '/account/center',
        component: './user/account/center',
      },
      {
        name: 'settings',
        icon: 'smile',
        path: '/account/settings',
        component: './user/account/settings',
      },
    ],
  },

  {
    name: 'demo',
    icon: 'table',
    path: 'demo',
    routes: [
      {
        path: 'search',
        name: 'search',
        icon: 'table',
        component: './dashboard/search',
        routes: [
          {
            name: 'articles',
            icon: 'smile',
            path: 'articles',
            component: './dashboard/search/articles',
          },
          {
            name: 'projects',
            icon: 'smile',
            path: 'projects',
            component: './dashboard/search/projects',
          },
          {
            name: 'applications',
            icon: 'smile',
            path: 'applications',
            component: './dashboard/search/applications',
          },
        ],
      },
      {
        path: 'application',
        icon: 'table',
        name: 'application',
        component: './dashboard/application',
      },

      {
        path: 'list',
        icon: 'table',
        name: 'list',
        routes: [
          {
            name: 'basic-list',
            icon: 'smile',
            path: 'basic-list',
            component: './_demo/list/basic-list',
          },
          {
            name: 'card-list',
            icon: 'smile',
            path: 'card-list',
            component: './_demo/list/card-list',
          },
        ],
      },

      {
        path: 'form',
        icon: 'form',
        name: 'form',
        routes: [
          {
            name: 'basic-form',
            icon: 'smile',
            path: 'basic-form',
            component: './_demo/form/basic-form',
          },
          {
            name: 'step-form',
            icon: 'smile',
            path: 'step-form',
            component: './_demo/form/step-form',
          },
          {
            name: 'advanced-form',
            icon: 'smile',
            path: 'advanced-form',
            component: './_demo/form/advanced-form',
          },
        ],
      },

      {
        path: 'profile',
        name: 'profile',
        icon: 'profile',
        routes: [
          {
            name: 'basic',
            icon: 'smile',
            path: 'basic',
            component: './_demo/profile/basic',
          },
          {
            name: 'advanced',
            icon: 'smile',
            path: 'advanced',
            component: './_demo/profile/advanced',
          },
        ],
      },
    ],
  },

  {
    name: 'tenant',
    icon: 'table',
    path: 'tenant',
    routes: [
      {
        path: 'tTenant',
        icon: 'table',
        name: 'tTenant',
        component: './tenant/tTenant',
      },
      {
        path: 'oauthClientDetails',
        icon: 'table',
        name: 'oauthClientDetails',
        component: './tenant/oauthClientDetails',
      },
      {
        path: 'rbacPermission',
        icon: 'table',
        name: 'rbacPermission',
        component: './auth/rbacPermission',
      },
      {
        path: 'rbacMenu',
        icon: 'table',
        name: 'rbacMenu',
        component: './auth/rbacMenu',
      },
    ],
  },
  {
    name: 'auth',
    icon: 'table',
    path: 'auth',
    routes: [
      {
        path: 'rbacUser',
        icon: 'table',
        name: 'rbacUser',
        component: './auth/rbacUser',
      },

      {
        path: 'rbacRole',
        icon: 'table',
        name: 'rbacRole',
        component: './auth/rbacRole',
      },
    ],
  },
];
